<?php

echo json_encode(count($_GET) ? $_GET : $_POST);

